package com.system.entity;

import com.alibaba.fastjson.annotation.JSONField;

public class CollectInfo {
	@JSONField(name = "id", ordinal = 1)
	private String foodNum;
	@JSONField(name = "name", ordinal = 2)
	private String foodName;
	@JSONField(ordinal = 3)
	private int collectTotal;
	@JSONField(ordinal = 4)
	private String collect1;
	@JSONField(ordinal = 5)
	private String collect2;
	@JSONField(ordinal = 6)
	private String collect3;
	@JSONField(ordinal = 7)
	private String collect4;
	@JSONField(ordinal = 8)
	private String collect5;
	@JSONField(ordinal = 9)
	private String collectNum;
	
	public CollectInfo() {
		super();
	}

	public CollectInfo(String foodNum, String foodName, String collectNum) {
		super();
		this.foodNum = foodNum;
		this.foodName = foodName;
		this.collectNum = collectNum;
	}

	public CollectInfo(String foodNum, String foodName, int collectTotal, String collectNum) {
		super();
		this.foodNum = foodNum;
		this.foodName = foodName;
		this.collectTotal = collectTotal;
		this.collectNum = collectNum;
	}

	public CollectInfo(String foodNum, String foodName, int collectTotal, String collect1, String collect2,
			String collect3, String collect4, String collect5) {
		super();
		this.foodNum = foodNum;
		this.foodName = foodName;
		this.collectTotal = collectTotal;
		this.collect1 = collect1;
		this.collect2 = collect2;
		this.collect3 = collect3;
		this.collect4 = collect4;
		this.collect5 = collect5;
	}

	public void setAllCollect(String[] collect) {
		this.collect1 = collect[0];
		this.collect2 = collect[1];
		this.collect3 = collect[2];
		this.collect4 = collect[3];
		this.collect5 = collect[4];
	}
	
	public String getFoodName() {
		return foodName;
	}

	public void setFoodName(String foodName) {
		this.foodName = foodName;
	}

	public String getCollectNum() {
		return collectNum;
	}

	public void setCollectNum(String collectNum) {
		this.collectNum = collectNum;
	}

	public String getFoodNum() {
		return foodNum;
	}

	public void setFoodNum(String foodNum) {
		this.foodNum = foodNum;
	}

	public int getCollectTotal() {
		return collectTotal;
	}

	public void setCollectTotal(int collectTotal) {
		this.collectTotal = collectTotal;
	}

	public String getCollect1() {
		return collect1;
	}

	public void setCollect1(String collect1) {
		this.collect1 = collect1;
	}

	public String getCollect2() {
		return collect2;
	}

	public void setCollect2(String collect2) {
		this.collect2 = collect2;
	}

	public String getCollect3() {
		return collect3;
	}

	public void setCollect3(String collect3) {
		this.collect3 = collect3;
	}

	public String getCollect4() {
		return collect4;
	}

	public void setCollect4(String collect4) {
		this.collect4 = collect4;
	}

	public String getCollect5() {
		return collect5;
	}

	public void setCollect5(String collect5) {
		this.collect5 = collect5;
	}

	@Override
	public String toString() {
		return "CollectInfo [foodNum=" + foodNum + ", foodName=" + foodName + ", collectTotal=" + collectTotal
				+ ", collect1=" + collect1 + ", collect2=" + collect2 + ", collect3=" + collect3 + ", collect4="
				+ collect4 + ", collect5=" + collect5 + ", collectNum=" + collectNum + "]";
	}

	
}
